package com.yuexunxinxi.carefree.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.yuexunxinxi.carefree.utils.AarrayJsonSerializer;
import com.yuexunxinxi.carefree.utils.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 作者: 李咨辰
 * 文件名: CTenement.java
 * 路径: com.yuexunxinxi.carefree.entity
 * 时间: 2024-11-10 12:31
 * 版本: 1.0
 * 描述: TODO 房屋出租
 **/

@EqualsAndHashCode(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Data
public class CTenement extends BaseEntity {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;//编号
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;//用户编号
    private String content;//内容
    @JsonSerialize(using = AarrayJsonSerializer.class)
    private String picture;//房屋照片
    private Integer type;//房屋类型
    @JsonSerialize(using = AarrayJsonSerializer.class)
    private String address;//房屋地址
    private Integer floor;//楼层
    private Integer area;//房屋面积
    private String houseType;//户型
    @JsonSerialize(using = AarrayJsonSerializer.class)
    private String tag;//房屋标签
    private Integer rent;//月租金
    private Integer paymentMethod;//付款方式
    private String phone;//联系方式
    private String certificate;//房屋证明
    private Integer status;//房屋状态
}
